<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import Cookies from 'js-cookie'
export default {
  data(){
    return{

    }
  },
  mounted(){
    //关闭浏览器窗口的时候清空管理员token
    window.onbeforeunload = function() {
      Cookies.remove('admin');
    }
  }
}
</script>

<style>

</style>
